<?php
require_once("../../classes/myDatabase.php");

class User extends Database{

        public function postStatus($poststatus,$fname,$lname){
        $this->connectDatabase();
        $sQuery = "INSERT INTO user_status (post_status,user_fname,user_lname,log_time)
                    VALUES('$poststatus','$fname','$lname',NOW())";
        mysql_query($sQuery);
        
        //$row = mysql_fetch_array(mysql_query("SELECT status_id FROM user_status WHERE post_status = '$poststatus'"));
        //$id = $row['status_id'];
        //
        //$sQuery = mysql_query("UPDATE user_status SET user_id='$id' WHERE status_id = '$id'");
        
        }
    }
?>